import request from '@/utils/request'

// 查询智能体管理列表
export function listRole(data) {
  return request({
    url: '/ai/agent/page',
    method: 'put',
    data
  })
}

//新增
export function agentadd(data) {
  return request({
    url: '/ai/agent/add',
    method: 'POST',
    data:  data
  })
}
//修改
export function agentupdate(data) {
  return request({
    url: '/ai/agent/update',
    method: 'put',
    data:  data
  })
}
//查询
export function agentInfo(agentId) {
  return request({
    url: `/ai/agent/agentInfo/${agentId}`,
    method: 'GET'
  })

}

// 禁用智能体
export function activeID(id,active) {
  return request({
    url: `/ai/agent/active/${id}/${active}`,
    method: 'POST',
  })
}

// 删除智能体
export function deleteRemove(id) {
  return request({
    url: `/ai/agent/remove/${id}`,
    method: 'DELETE',
  })
}